﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FAQFrameworks;
using DTOFrameworks;

namespace FooFun.Web.Controls
{
    public class SealedQuestionPage : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TopicManager topicManager = new TopicManager();

            int pageCount = topicManager.CountForumTopic(FAQContext.Current.ForumId, TopicStatus.Sealed) / 20;
            if (pageCount % 20 != 0)
            {
                pageCount++;
            }

            ints = Enumerable.Range(0, pageCount);
        }

        protected IEnumerable<int> ints;
    }
}
